<template>
	<view class="home">
		<view class="userInfo">
			<view class="userInfo_left">
				<view class="">
					<image src="../../static/images/logo.png" mode="" style="width: 110rpx;height: 110rpx;"></image>
				</view>
				<view style="margin-left: 20rpx;">
					<view class="userInfo_name">微信用户</view>
					<view class="userInfo_num">ID:12346789 <text @click="copy('1111111111111')">复制</text></view>
				</view>
			</view>
		</view>
		<view class="home_title">在<text >党建活动</text>中的</view>
		<view class="list">
			<view class="list_title">投票统计</view>
			<block v-for="(item,index) in 10" :key="index">
				<view class="list_meun">
					<view class="list_meun_left">
						<view class="list_meun_index">{{index + 1}}</view>
						<view class="list_meun_label">
							<image src="../../static/images/logo.png" mode=""></image>
							<text>1号 选手1</text>
						</view>
					</view>
					<view class="list_meun_num">1票</view>
				</view>
			</block>
		</view>
		<view class="footer">
			前往活动页
		</view>
	</view>
</template>

<script>
	import { getUserCards } from '../../api/user.js'
	export default {
		data() {
			return {
				
			}
		},
		mounted() {
			
		},
		methods:{
			copy(data){
				console.log(data)
				uni.setClipboardData({
				    data: data, // e是需要设置的内容
				    success: function () {
						uni.showToast({
							title:'复制成功',
							icon:'none'
						})
				    }
				})
			}
		}
		
	}
</script>

<style scoped lang="scss">
	.home{
		overflow: hidden;
		.userInfo{
			display: flex;
			align-items: center;
			justify-content: space-between;
			width: 100%;
			height: 120rpx;
			padding: 10rpx 30rpx;
			border-top: 10rpx solid #eee;
			border-bottom: 2rpx solid #eee;
			.userInfo_left{
				display: flex;
				align-items: center;
			}
			.userInfo_name{
				font-size: 28rpx;
				color: #303133;
			}
			.userInfo_num{
				font-size: 30rpx;
				color: #303133;
				margin-top: 10rpx;
				font-weight: bold;
				display: flex;
				align-items: center;
				text{
					font-size: 28rpx;
					color: #606266;
					font-weight: 300;
					margin-left: 40rpx;
					letter-spacing: 2rpx;
				}
			}
		}
		.home_title{
			display: flex;
			align-items: center;
			font-size: 26rpx;
			color: #303133;
			margin: 20rpx 0;
			padding: 0 30rpx;
			text{
				font-size: 28rpx;
				color: #303133;
				word-break:break-all;
				display:-webkit-box;
				-webkit-line-clamp:1; //这里写的数字是几就是超过几行剩余的显示省略号
				-webkit-box-orient:vertical;
				overflow:hidden;
				font-weight: bold;
				margin: 0 10rpx;
				letter-spacing: 2rpx;
				max-width: 80%;
			}
		}
		.list{
			padding: 0 30rpx;
			padding-bottom: 100rpx;
			.list_title{
				font-size: 28rpx;
				color: #303133;
				font-weight: bold;
			}
			.list_meun{
				display: flex;
				align-items: center;
				justify-content: space-between;
				height: 120rpx;
				.list_meun_left{
					display: flex;
					align-items: center;
				}
				.list_meun_index{
					font-size: 32rpx;
					color: #303133;
				}
				.list_meun_label{
					display: flex;
					align-items: center;
					margin-left: 20rpx;
					image{
						width: 60rpx;
						height: 60rpx;
						border-radius: 50%;
					}
					text{
						font-size: 26rpx;
						color: #303133;
						font-weight: bold;
						margin-left: 20rpx;
					}
				}
				.list_meun_num{
					font-size: 28rpx;
					color: #303133;
				}
			}
		}
		.footer{
			width: 100%;
			height: 100rpx;
			background: #3c9cff;
			display: flex;
			align-items: center;
			justify-content: center;
			font-size: 28rpx;
			color: #ffffff;
			font-weight: bold;
			letter-spacing: 2rpx;
			position: fixed;
			bottom: 0;
			left: 0;
		}
	}
</style>